package ex1;

/**
 * @author: knowno
 * @create: 2024-09-06 08:59
 * @Version 1.0
 **/
public class Circle extends MyShape {
    double r;
    final double PI = 3.14;


    public Circle() {

    }

    public Circle(double r) {
        this.r = r;
    }

    @Override
    public double getArea() {
        return PI * r * r;
    }

    @Override
    public double getLen() {
        return 2 * PI * r;
    }
}
